
<!doctype html>
<html>
 <head>
  <!-- <script src="./myscript.js"></script> -->
  <script>
    class MyClass {
    constructor(name) {
      this.name = name;
    }
  
    sayHello() {
      alert(`Hello, ${this.name}!`);
    }
  }
    const myObject = new MyClass("帅哥");
    myObject.sayHello();
  </script>
 </head>
 <body>
 </body>
</html>